package day05;

import java.util.Scanner;

public class txt12 {
    public static void main(String[] args) {
        int year = 2000;
        int month = 2;
        if (month == 2) {
            if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
                System.out.println("29");

            }else {
                System.out.println("28");
            }
        } else if (month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12) {
            System.out.println("31");
        } else {
            System.out.println("30");
        }
    }
}
